<template>
  <div class="slide-layout">
    <div class="left">
      <home-slide></home-slide>
    </div>
    <div class="right">
      <keep-alive :include="cachedPages">
        <router-view />
      </keep-alive>
    </div>
  </div>
</template>

<script>
import HomeSlide from './components/HomeSlide.vue'

import { mapGetters } from 'vuex'
export default {
  name: 'LayoutMain',
  components: { HomeSlide },
  computed: {
    ...mapGetters(['cachedPages']),
  },
}
</script>

<style lang="scss" scoped>
.slide-layout {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  background-color: #f0f2f5;
  background-image: url('../assets/images/slide-nav-bgi.png');
  padding: 10px 15px 15px 15px;
  .left {
    width: auto;
    margin-right: 12px;
  }
  .right {
    flex: 1;
    overflow: hidden;
    //background-image: url('../assets/images/slide-nav-bgi.png');
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
  }

  @media screen and(max-width:1400px) {
    .left {
      width: 200px;
    }
  }
}
</style>
